#pragma once

#include "D3DApp.h"
#include "format.h"

class TestD3D:public D3DApp
{
public:
	TestD3D(HINSTANCE hInstance) :D3DApp(hInstance){}
	~TestD3D();

	bool Init();
	void Update(float dt);
	void DrawLine(double , double , double , double );
	void DrawPolygon(Polygon2d &poly);
	void DrawTopTri(int x1, int y1, int x2, int y2, int x3, int y3);
	void DrawScene();

private:
	ID3D11Buffer* mVB;
	ID3D11Buffer* mIB;
	ID3D11Buffer*          mConstantBuffer;
	ID3D11Texture2D*	mTempTexture;
	ID3D11ShaderResourceView* mTextureRV;
	ID3D11SamplerState* mSampleLinear;

	ID3D11VertexShader*     mVS;
	ID3D11PixelShader*      mPS;
	ID3D11InputLayout*      mInputLayout;

	XMMATRIX mWorld;
	XMMATRIX mView;
	XMMATRIX mProjection;
};


